package com.jeesite.modules.pt.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 首页ICONEntity
 * @author 李寒冰
 * @version 2025-04-01
 */
@Table(name="pt_icon", alias="a", label="首页ICON信息", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="title", attrName="title", label="标题", queryType=QueryType.LIKE),
		@Column(name="icon", attrName="icon", label="ICON"),
		@Column(name="url", attrName="url", label="链接"),
		@Column(name="is_show", attrName="isShow", label="是否隐藏", isUpdateForce=true),
	}, orderBy="a.id DESC"
)
public class PtIcon extends DataEntity<PtIcon> {
	
	private static final long serialVersionUID = 1L;
	private String title;		// 标题
	private String icon;		// ICON
	private String url;		// 链接
	private Integer isShow;		// 是否隐藏

	public PtIcon() {
		this(null);
	}
	
	public PtIcon(String id){
		super(id);
	}
	
	@Size(min=0, max=255, message="标题长度不能超过 255 个字符")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Size(min=0, max=255, message="ICON长度不能超过 255 个字符")
	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}
	
	@Size(min=0, max=255, message="链接长度不能超过 255 个字符")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	public Integer getIsShow() {
		return isShow;
	}

	public void setIsShow(Integer isShow) {
		this.isShow = isShow;
	}
	
}